//
//  YKWebViewController.h
//  YKKit
//
//  Created by 马洪伟 on 16/1/13.
//  Copyright © 2016年 悦康动力（北京）科技有限公司. All rights reserved.
//

#import "YKBaseViewController.h"

@class YKWebViewController;
@protocol YKWebViewControllerDelegate <NSObject>

@optional
- (BOOL)webViewController:(nonnull YKWebViewController *)webViewController shouldStartLoadWithRequest:(nullable NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType;
- (void)webViewControllerDidStartLoad:(nonnull YKWebViewController *)webViewController;
- (void)webViewControllerDidFinishLoad:(nonnull YKWebViewController *)webViewController;
- (void)webViewController:(nonnull YKWebViewController *)webViewController didFailLoadWithError:(nullable NSError *)error;

@end

@interface YKWebViewController : YKBaseViewController
@property (weak, nonatomic, nullable) id<YKWebViewControllerDelegate> delegate;
@property (strong, nonatomic ,nullable) UIWebView *webView;
@property (strong, nonatomic, nullable) NSURL *url;
@property (strong, nonatomic, nullable) NSURLRequest *request;
@property (assign, nonatomic) BOOL shouldShowWebContentTitle;
@end
